package com.higgins.lawapp.client.settings.dataModel;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@SuppressWarnings("serial")
public class DataSourceLevelDTO implements Serializable {
	private String dataSourceNameKey;
	private String dataSourceName;
	private String dataSourceURL;
	private Boolean dataSourceExecution;
	private Boolean dataSourceConcat;
	private String dataSourceExampleField;
	private List<DataSourceObjectDTO> dataSourceObjectDTOs = new ArrayList<DataSourceObjectDTO>();
	
	public DataSourceLevelDTO()	{
		
	}
	public void setDataSourceNameKey(String dataSourceNameKey)	{
		this.dataSourceNameKey = dataSourceNameKey;
	}
	public String getDataSourceNameKey()	{
		return dataSourceNameKey;
	}
	public void setDataSourceName(String dataSourceName)	{
		this.dataSourceName = dataSourceName;
	}
	public String getDataSourceName()	{
		return dataSourceName;
	}
	public void setDataSourceURL(String dataSourceURL)	{
		this.dataSourceURL = dataSourceURL;
	}
	public String getDataSourceURL()	{
		return dataSourceURL;
	}
	public void setDataSourceExecution(Boolean dataSourceExecution)	{
		this.dataSourceExecution = dataSourceExecution;
	}
	public Boolean getDataSourceExecution()	{
		return dataSourceExecution;
	}
	public void setDataSourceConcat(Boolean dataSourceConcat)	{
		this.dataSourceConcat = dataSourceConcat;
	}
	public Boolean getDataSourceConcat()	{
		return dataSourceConcat;
	}
	public void setDataSourceExampleField(String dataSourceExampleField)	{
		this.dataSourceExampleField = dataSourceExampleField;
	}
	public String getDataSourceExampleField()	{
		return dataSourceExampleField;
	}
	public void addDataSourceObjectDTO(DataSourceObjectDTO dataSourceObjectDTO)	{
		dataSourceObjectDTOs.add(dataSourceObjectDTO);
	}
	public List<DataSourceObjectDTO> getDataSourceObjectDTOs()	{
		return dataSourceObjectDTOs;
	}
	public DataSourceObjectDTO getDataSourceObjectDTO(int index)	{
		DataSourceObjectDTO dataSourceObjectDTO;
		if (dataSourceObjectDTOs.size() > index)	{
			dataSourceObjectDTO = dataSourceObjectDTOs.get(index);
		} else	{
			dataSourceObjectDTO = new DataSourceObjectDTO();
			dataSourceObjectDTOs.add(dataSourceObjectDTO);
		}
		return dataSourceObjectDTO;
	}
}
